package com.copa.gameStore.client;

import com.copa.gameStore.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("game-user")
public interface UserClient {

    @GetMapping("roleNameByUserId")
    List<String> roleNameByUserId(@RequestParam("userId") Long userId);

    @GetMapping("findByUsername")
    User findByUsername(@RequestParam("username") String username);
}
